package javaer.starter.core.render;

import org.springframework.stereotype.Component;

/**
 * 按名字解析
 *
 * @author yangzhen
 * @date 2023/6/14 19:04
 * @since 1.0.0
 */
@Component
public interface INamedFileRender extends ITemplateRender {

    default boolean isMatch(String token) {
        if (token == null) {
            return false;
        }
        return getMatchToken().equals(token);
    }
}
